package com.qmyx.supply.admin.shiro;

import lombok.Data;

@Data
public class JsonResult {

    private Integer status;
    private String message;
    private Object data;

    public JsonResult(){}

    public JsonResult(String message){
        this.message=message;
    }

    public JsonResult(Object data){
        this.data=data;
    }

    public JsonResult(Throwable e){
        this.status=0;
        this.message=e.getMessage();
    }

    public Integer getState() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    public Object getData() {
        return data;
    }
}
